package com.spring.data.seruce.sophiaresource.controller.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Administrator
 */
@FeignClient(value = "sophia-auth", fallback = AuthRemoteServiceFollback.class)
public interface AuthRemoteService {

    /**
     * 远程调用鉴权
     *
     * @param itemCode
     * @return
     */
    @PostMapping(value = "/oauth/{itemCode}")
    String getUserByUserName(@PathVariable String itemCode);
}
